<?php
use Illuminate\Database\Seeder;

class ChaptersSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        // 生成10条测试数据
        $managers = factory(\App\Models\Chapters::class)->times(10)->make();
        // 添加到数据库
        \App\Models\Chapters::insert($managers->toArray());
    }
}
